xen/xsm: Add xsm_default parameter to XSM hooks
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 11 Jan 2013 10:44:01 +0000 (10:44 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 11 Jan 2013 10:44:01 +0000 (10:44 +0000)
commit0d7f18b01f69c6b89aa3654bd2b11e24f41aaf71
treeb617ea3a23d5091d2c272423a36bbcb69dff24c9
parentfcb8baddf00e0034ef382eef8f3f11bf1330c14e
xen/xsm: Add xsm_default parameter to XSM hooks

Include the default XSM hook action as the first argument of the hook
to facilitate quick understanding of how the call site is expected to
be used (dom0-only, arbitrary guest, or device model). This argument
does not solely define how a given hook is interpreted, since any
changes to the hook's default action need to be made identically to
all callers of a hook (if there are multiple callers; most hooks only
have one), and may also require changing the arguments of the hook.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Keir Fraser <keir@xen.org>
27 files changed:
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/irq.c
xen/arch/x86/mm.c
xen/arch/x86/mm/mem_event.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/paging.c
xen/arch/x86/msi.c
xen/arch/x86/physdev.c
xen/arch/x86/platform_hypercall.c
xen/arch/x86/sysctl.c
xen/arch/x86/traps.c
xen/common/domain.c
xen/common/domctl.c
xen/common/event_channel.c
xen/common/grant_table.c
xen/common/kexec.c
xen/common/memory.c
xen/common/schedule.c
xen/common/sysctl.c
xen/common/xenoprof.c
xen/drivers/char/console.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c
xen/include/xsm/dummy.h
xen/include/xsm/xsm.h